package com.wy.tranFile.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

@Configuration
public class BeanConfig {
//    @Bean
//    public CommonsMultipartResolver multipartResolver() {
//        CommonsMultipartResolver commonsMultipartResolver = new CommonsMultipartResolver();
//        //设置每个文件最大上传大小
//        commonsMultipartResolver.setMaxUploadSizePerFile(20 * 1024 * 1024);
//        //设置文件总的大小
//        commonsMultipartResolver.setMaxUploadSize(100 * 1024 * 1024);
//        return commonsMultipartResolver;
//    }
}
